package flash.net;

extern class NetConnection extends flash.events.EventDispatcher
{
	static var defaultObjectEncoding:UInt;
	function close():Void;
	function addHeader(operation:String, mustUnderstand:Bool = false, param:Dynamic = null):Void;
	function call(command:String, responder:flash.net.Responder, arg1:Dynamic = null, arg2:Dynamic = null, arg3:Dynamic = null, arg4:Dynamic = null, arg5:Dynamic = null, arg6:Dynamic = null, arg7:Dynamic = null, arg8:Dynamic = null, arg9:Dynamic = null, arg10:Dynamic = null):Void;
	function connect(command:String, arg1:Dynamic = null, arg2:Dynamic = null, arg3:Dynamic = null, arg4:Dynamic = null, arg5:Dynamic = null, arg6:Dynamic = null, arg7:Dynamic = null, arg8:Dynamic = null, arg9:Dynamic = null, arg10:Dynamic = null):Void;
	var maxPeerConnections:UInt;
	var unconnectedPeerStreams(default, null):Array<flash.net.NetStream>;
	var farNonce(default, null):String;
	var connectedProxyType(default, null):String;
	var nearNonce(default, null):String;
	var uri(default, null):String;
	var objectEncoding:UInt;
	var connected(default, null):Bool;
	var client:Dynamic;
	var nearID(default, null):String;
	var httpIdleTimeout:Float;
	var protocol(default, null):String;
	var usingTLS(default, null):Bool;
	var proxyType:String;
	var farID(default, null):String;
	function new():Void;
}